package com.love.utils.redis;

import java.util.ResourceBundle;

public class RedisConfig {
	
	private static final ResourceBundle redisConfig = java.util.ResourceBundle.getBundle("redisConfig");
	
	public static final String getHost() {
		return redisConfig.getString("redis.pool.host");
	}
	
	public static final int getPort() {
		return Integer.valueOf(redisConfig.getString("redis.pool.port"));
	}
	
	public static final int getMaxActive() {
		return Integer.valueOf(redisConfig.getString("redis.pool.maxActive"));
	}
	
	public static final int getMaxIdle() {
		return Integer.valueOf(redisConfig.getString("redis.pool.maxIdle"));
	}
	
	public static final int getMaxWait() {
		return Integer.valueOf(redisConfig.getString("redis.pool.maxWait"));
	}
	
	public static final boolean getTestOnBorrow() {
		return Boolean.valueOf(redisConfig.getString("redis.pool.testOnBorrow"));
	}
	
	public static final boolean getTestOnReturn() {
		return Boolean.valueOf(redisConfig.getString("redis.pool.testOnReturn"));
	}
	
	public static final String getPassword() {
		return String.valueOf(redisConfig.getString("redis.server.password"));
	}
	
	public static final int getTimeOut(){
		return Integer.valueOf(redisConfig.getString("redis.server.timeout"));
	}
}
